{include file="../../../application/admin/view/public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .layui-field-box .layui-btn{
        margin: 3px 5px;
    }
    .layui-table-cell {
        min-height: 30px;
        height: initial;
    }
    .layui-table-cell, .layui-table-tool-panel li,.layui-table td, .layui-table th {
        white-space: initial;
        /*为了让字母和数字也换行*/
        word-break: break-word;
    }
</style>
<div class="page-container p10">

    <div class="my-toolbar-box">

        <div class="left mb10">
            <fieldset class="layui-elem-field">
                <legend>用户  {$deviceInfo.device_name} 的反馈</legend>
                <div class="layui-field-box">
                   所属app： {$deviceInfo.app_name}[{$deviceInfo.app_id}] 设备号：{$deviceInfo.device_id}
                </div>

            </fieldset>
        </div>

    </div>

    <div class="layui-btn-group">
        <a data-href="{:url('reply?device_id='.$deviceInfo.device_id.'&app_id='.$deviceInfo.app_id)}" class="layui-btn layui-btn-primary j-iframe"><i class="layui-icon">&#xe654;</i>回复</a>
    </div>
    <form class="layui-form " method="post" id="pageListForm">
        <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="40">类型</th>
                <th width="50">版本号</th>
                <th >内容</th>
                <th width="100">阅读状态</th>
                <th width="180">更新时间</th>
                <th width="200">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td >{$vo.is_reply==1?'<span style="color:red;">回复</span>':'反馈'}</td>
                <td>{$vo.app_version}</td>
                <td>
                    {if empty($vo.content)}
                    <a class="layui-badge" target="_blank" href="{$vo.fujianurl}">    {if $vo.fujiantype=="pic"}图片附件 {elseif $vo.fujiantype=='vod'}视频附件{/if}</a>
                    {else /}
                     {$vo.content}
                    {/if}
                </td>
                <td>{$vo.is_reply==1?'用户':'管理员'}{$vo.is_read==1?'已读':'未读'}</td>
                <td>{$vo.time_added|mac_day=color}</td>
                <td>
<!--                    {if $vo.is_reply===0}-->
<!--                    {/if}-->
                    <a class="layui-badge-rim j-tr-del" data-href="{:url('dellog?ids='.$vo['id'])}" href="javascript:;" title="删除">删除</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div id="pages" class="center"></div>
    </form>
</div>




{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    var curUrl="{:url('feedback/index',$param)}";
    layui.use(['laypage', 'layer','form'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,
                form = layui.form;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });


    });

</script>
</body>
</html>